package com.star.vrserver.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author star
 * @date 2023-03-07 21:37
 * @Description 定义全局异常类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor  //生成有参构造方法
@NoArgsConstructor   //生成无参构造方法
public class StarException extends RuntimeException{
    private Integer code; //状态码
    private String msg; //异常信息
}
